package com.wuwei.service;

import com.wuwei.dao.UserDao;
import com.wuwei.entity.User;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {
    @Resource
    private UserDao userDao;

    public User findByUsername(String username) {
        // return userDao.findByUsername(username);

        User user = new User();
        user.setUsername("kongrong");
        user.setPassword("123");

        return user;
    }

}
